<?php
class UserModel extends DbTable {

    protected $_pk = 'reg_id';
    protected $_tableInfo = array(
		'reg_id','reg_username'
	);
    //protected $_tablePrefix = 'lm_';
    protected $_tableName = 'reg_user';

    public function test(){
        $this->where('reg_id > 0')->limit(100)->select();
        return $this->getAll();
    }

    public function chang($arr){
        return $this->where(array('reg_id' => 'eq 0','reg_username' => 'eq  jjwjw'))->update($arr);
    }

    public function add($arr){
        return $this->insert($arr);
    }

    public function up($wh,$arr){

        return $this->where($wh)->update($arr);
    }

    public function oneData($id){
        return $this->_getOne($id);
    }


}